package com.yy.wga.user.feign.api;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.user.feign.response.UserSummaryResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户数据统计
 *
 * @author guochao
 * @since 2024-12-10 22:41:43
 */
@FeignClient(name = "user-summary-feign",
        url = "http://127.0.0.1:9100",
        path = "/api/user/summary/")
public interface UserSummaryFeign {
    /**
     * 获取用户统计数据
     *
     * @param userId 用户id
     * @return UserSummaryResp
     */
    @GetMapping("get")
    Result<UserSummaryResp> get(@RequestParam("userId") Long userId);
}
